{{left_sidebar_enabled,right_sidebar_enabled=False,False}}
{{extend 'layout.html'}}
{{from ndsfunctions import truncquest}}
{{if quests:}}
<h1>My Actions</h1>
<p>These are all the actions you have submitted in priority order based on the current assessment of priorities. </p>
<table id='TabAnswers' class='issuetable'>
				<thead>
					<tr>
						<th width="4%">Level</th>
                        <th width="50%">Question</th>
                        <th width="8%">Status</th>
                        <th width="8%">Urgency</th>
                        <th width="10%">Importance</th>
                        <th width="20%">Answer</th>                        
                    </tr>
                </thead>
                    <tbody>
{{for i,row in enumerate(quests):}}
{{if i==items_per_page: break}}
<tr>
<th><a href="{{=URL('viewquest','index',args=[row.id])}}">{{=row.level}}</a></th>
<td>{{=truncquest(row.questiontext)}}</td>
<td>{{=row.status}}</td>
<td>{{=row.urgency}}</td>
<td>{{=row.importance}}</td>
<td>{{=row.correctanstext}}</td>
</tr>
{{pass}}
 </tbody>
</table>
                        
{{if page:}}
<a href="{{=URL(args=[page-1])}}">previous</a>
{{pass}}

{{if len(quests)>items_per_page:}}
<a href="{{=URL(args=[page+1])}}">next</a>
{{pass}}

{{else:}}
<p>You haven't submitted any actions yet.  You can do this <a href="{{=URL('submit','new_question')}}">here</a>  </p>
{{pass}}

